<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Objective-C API Reference for iOS/macOS: JCGroup类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Objective-C API Reference for iOS/macOS
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="#pub-static-methods">类方法</a> &#124;
<a href="interface_j_c_group-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCGroup类 参考<div class="ingroups"><a class="el" href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html">群组模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#import &lt;<a class="el" href="_j_c_group_8h_source.html">JCGroup.h</a>&gt;</code></p>
<div class="dynheader">
类 JCGroup 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_j_c_group.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:af7639cf24c5e1c88790285d3bc7e5191"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_group.html#af7639cf24c5e1c88790285d3bc7e5191">fetchGroups:</a></td></tr>
<tr class="separator:af7639cf24c5e1c88790285d3bc7e5191"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5852968846cd872b8abb796a35a8aa6b"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_group.html#a5852968846cd872b8abb796a35a8aa6b">fetchGroupInfo:updateTime:</a></td></tr>
<tr class="separator:a5852968846cd872b8abb796a35a8aa6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4851fb5f628bf635045cb360539975b1"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_group.html#a4851fb5f628bf635045cb360539975b1">createGroup:groupName:type:customProperties:</a></td></tr>
<tr class="separator:a4851fb5f628bf635045cb360539975b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca22882b3e29cbbd3763f0c354dfccd5"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_group.html#aca22882b3e29cbbd3763f0c354dfccd5">updateGroup:</a></td></tr>
<tr class="separator:aca22882b3e29cbbd3763f0c354dfccd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6276a1b810c0976954e6ba0086670f4a"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_group.html#a6276a1b810c0976954e6ba0086670f4a">dissolve:</a></td></tr>
<tr class="separator:a6276a1b810c0976954e6ba0086670f4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f04930622631092ea1a39ea8694f591"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_group.html#a3f04930622631092ea1a39ea8694f591">leave:</a></td></tr>
<tr class="separator:a3f04930622631092ea1a39ea8694f591"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a084e2dcd50a98ba94b88f5028fdecb3d"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_group.html#a084e2dcd50a98ba94b88f5028fdecb3d">dealMembers:members:</a></td></tr>
<tr class="separator:a084e2dcd50a98ba94b88f5028fdecb3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad519604f281f0e74374c47d2ae419faa"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_group.html#ad519604f281f0e74374c47d2ae419faa">updateGroupComment:nickName:tag:</a></td></tr>
<tr class="separator:ad519604f281f0e74374c47d2ae419faa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a24aae91e07f13a687707ea8a56b8d4"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_group.html#a2a24aae91e07f13a687707ea8a56b8d4">setDnd:dnd:</a></td></tr>
<tr class="separator:a2a24aae91e07f13a687707ea8a56b8d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
类方法</h2></td></tr>
<tr class="memitem:a46c9376d41cf9861b253d8ebf88a0c50"><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_j_c_group.html">JCGroup</a> *__nullable)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_j_c_group.html#a46c9376d41cf9861b253d8ebf88a0c50">create:callback:</a></td></tr>
<tr class="separator:a46c9376d41cf9861b253d8ebf88a0c50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a7b35b69b04406fa72742a875e5a652"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_j_c_group.html#a4a7b35b69b04406fa72742a875e5a652">destroy</a></td></tr>
<tr class="separator:a4a7b35b69b04406fa72742a875e5a652"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>群操作类 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="a46c9376d41cf9861b253d8ebf88a0c50"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46c9376d41cf9861b253d8ebf88a0c50">&#9670;&nbsp;</a></span>create:callback:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="interface_j_c_group.html">JCGroup</a>* __nullable) create: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_client.html">JCClient</a> *__nonnull)&#160;</td>
          <td class="paramname"><em>client</em></td>
        </tr>
        <tr>
          <td class="paramkey">callback:</td>
          <td></td>
          <td class="paramtype">(id&lt; <a class="el" href="protocol_j_c_group_callback-p.html">JCGroupCallback</a> &gt; __nonnull)&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建 <a class="el" href="interface_j_c_group.html">JCGroup</a> 对象</p>
<p><a class="el" href="interface_j_c_group.html">JCGroup</a> 的所有接口函数，如无特殊说明，都建议在主线程调用</p>
<dl class="section note"><dt>注解</dt><dd><ul>
<li>调用此方法创建 <a class="el" href="interface_j_c_group.html">JCGroup</a> 对象后，期间没有调用过 <a class="el" href="interface_j_c_group.html#a4a7b35b69b04406fa72742a875e5a652">destroy</a> 方法销毁对象，然后又重复调用此方法，会直接返回第一次创建的 <a class="el" href="interface_j_c_group.html">JCGroup</a> 对象</li>
<li>调用此方法前确保 <a class="el" href="interface_j_c_client.html">JCClient</a> 已完成初始化，即 <a class="el" href="interface_j_c_client.html#af428728decbaf19a2ac6552a07351a65">state</a> 状态值不等于 <a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga485360c806cb3a83e41ac56a9ad7e709a5a6b582ba8275e39567b419ce05b7860">JCClientStateNotInit</a></li>
</ul>
</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">client</td><td><a class="el" href="interface_j_c_client.html">JCClient</a> 对象 </td></tr>
    <tr><td class="paramname">callback</td><td><a class="el" href="protocol_j_c_group_callback-p.html">JCGroupCallback</a> 回调接口，用于回调相关通知 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回 <a class="el" href="interface_j_c_group.html">JCGroup</a> 对象 </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">JCClient、JCGroupCallback 任意一个参数传空就会出现调用异常</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4851fb5f628bf635045cb360539975b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4851fb5f628bf635045cb360539975b1">&#9670;&nbsp;</a></span>createGroup:groupName:type:customProperties:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) createGroup: </td>
          <td></td>
          <td class="paramtype">(NSArray&lt; <a class="el" href="interface_j_c_group_member.html">JCGroupMember</a> * &gt; *__nonnull)&#160;</td>
          <td class="paramname"><em>members</em></td>
        </tr>
        <tr>
          <td class="paramkey">groupName:</td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>groupName</em></td>
        </tr>
        <tr>
          <td class="paramkey">type:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html#gaefb5c27674a3722b859a6752fef1f550">JCGroupType</a>)&#160;</td>
          <td class="paramname"><em>type</em></td>
        </tr>
        <tr>
          <td class="paramkey">customProperties:</td>
          <td></td>
          <td class="paramtype">(NSDictionary&lt; NSString *, NSObject * &gt; *__nullable)&#160;</td>
          <td class="paramname"><em>customProperties</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建群</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">members</td><td><a class="el" href="interface_j_c_group_member.html">JCGroupMember</a> 列表 </td></tr>
    <tr><td class="paramname">groupName</td><td>群名称 </td></tr>
    <tr><td class="paramname">type</td><td>群类型：<ul>
<li><a class="el" href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html#ggaefb5c27674a3722b859a6752fef1f550a76d18ae24646336b75bf05ca966bfadc">JCGroupTypeDiscussion</a> : 讨论组</li>
<li><a class="el" href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html#ggaefb5c27674a3722b859a6752fef1f550a88f382478a6164ead2938caf0fb8120d">JCGroupTypeNormal</a> : 普通群 </li>
</ul>
</td></tr>
    <tr><td class="paramname">customProperties</td><td>自定义属性 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_group_callback-p.html#a40ab12f45bba248f056294c4afbad6ba">onCreateGroup</a> 回调</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a084e2dcd50a98ba94b88f5028fdecb3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a084e2dcd50a98ba94b88f5028fdecb3d">&#9670;&nbsp;</a></span>dealMembers:members:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) dealMembers: </td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>groupId</em></td>
        </tr>
        <tr>
          <td class="paramkey">members:</td>
          <td></td>
          <td class="paramtype">(NSArray&lt; <a class="el" href="interface_j_c_group_member.html">JCGroupMember</a> * &gt; *__nonnull)&#160;</td>
          <td class="paramname"><em>members</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>操作成员</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">groupId</td><td>群标识 </td></tr>
    <tr><td class="paramname">members</td><td><a class="el" href="interface_j_c_group_member.html">JCGroupMember</a> 对象列表，通过 <a class="el" href="interface_j_c_group_item.html#abb32e0910f0c9e0b356b98d9f2f89eb2">changeState</a> 值来表明增加，更新，删除成员操作 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_group_callback-p.html#af0afec355b3cb89cc6e8a1b1f724f323">onDealMembers</a> 回调</li>
<li>-1：调用异常，不会收到回调通知 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a4a7b35b69b04406fa72742a875e5a652"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a7b35b69b04406fa72742a875e5a652">&#9670;&nbsp;</a></span>destroy</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) destroy </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>销毁 <a class="el" href="interface_j_c_group.html">JCGroup</a> 对象</p>
<dl class="section note"><dt>注解</dt><dd>此方法为异步调用，所以在调用此方法后不能马上调用 <a class="el" href="interface_j_c_group.html#a46c9376d41cf9861b253d8ebf88a0c50">create</a> 方法去重新创建 <a class="el" href="interface_j_c_group.html">JCGroup</a> 对象 </dd></dl>

</div>
</div>
<a id="a6276a1b810c0976954e6ba0086670f4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6276a1b810c0976954e6ba0086670f4a">&#9670;&nbsp;</a></span>dissolve:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) dissolve: </td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>groupId</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>解散群组</p>
<dl class="section note"><dt>注解</dt><dd>群拥有者才能解散群组</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">groupId</td><td>群标识 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_group_callback-p.html#a70e3b55fe7570585bfc3ef4ecb1b63df">onDissolve</a> 回调</li>
<li>-1：调用异常，不会收到回调通知 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a5852968846cd872b8abb796a35a8aa6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5852968846cd872b8abb796a35a8aa6b">&#9670;&nbsp;</a></span>fetchGroupInfo:updateTime:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) fetchGroupInfo: </td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>groupId</em></td>
        </tr>
        <tr>
          <td class="paramkey">updateTime:</td>
          <td></td>
          <td class="paramtype">(long)&#160;</td>
          <td class="paramname"><em>updateTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>刷新群组信息</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">groupId</td><td>群标识 </td></tr>
    <tr><td class="paramname">updateTime</td><td>最新一次记录的该群服务器更新时间 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_group_callback-p.html#ad38bdbe71d9575e059a3d846f1eab545">onFetchGroupInfo</a> 回调</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="af7639cf24c5e1c88790285d3bc7e5191"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7639cf24c5e1c88790285d3bc7e5191">&#9670;&nbsp;</a></span>fetchGroups:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) fetchGroups: </td>
          <td></td>
          <td class="paramtype">(long)&#160;</td>
          <td class="paramname"><em>updateTime</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取当前用户加入的群列表</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">updateTime</td><td>最新一次记录的群列表服务器更新时间 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_group_callback-p.html#ae6e687f4b4349ea98d79aa7c7e9ce0f0">onFetchGroups</a> 回调</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a3f04930622631092ea1a39ea8694f591"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f04930622631092ea1a39ea8694f591">&#9670;&nbsp;</a></span>leave:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) leave: </td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>groupId</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>离开群组</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">groupId</td><td>群标识 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_group_callback-p.html#a2ae35fc1044a6ef84d0b7ccc0f87f556">onLeave</a> 回调</li>
<li>-1：调用异常，不会收到回调通知 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a2a24aae91e07f13a687707ea8a56b8d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a24aae91e07f13a687707ea8a56b8d4">&#9670;&nbsp;</a></span>setDnd:dnd:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) setDnd: </td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>groupId</em></td>
        </tr>
        <tr>
          <td class="paramkey">dnd:</td>
          <td></td>
          <td class="paramtype">(bool)&#160;</td>
          <td class="paramname"><em>dnd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置免打扰</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">groupId</td><td>群标识 </td></tr>
    <tr><td class="paramname">dnd</td><td>是否免打扰<ul>
<li>true: 免打扰，</li>
<li>false: 取消免打扰 </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_group_callback-p.html#ac55516ed86db2fe06472de2ec3a9fcec">onSetGroupDnd</a> 回调</li>
<li>-1：调用异常，不会收到回调通知 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="aca22882b3e29cbbd3763f0c354dfccd5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca22882b3e29cbbd3763f0c354dfccd5">&#9670;&nbsp;</a></span>updateGroup:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) updateGroup: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_group_item.html">JCGroupItem</a> *__nonnull)&#160;</td>
          <td class="paramname"><em>groupItem</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>更新群</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">groupItem</td><td><a class="el" href="interface_j_c_group_item.html">JCGroupItem</a> 对象，其中 <a class="el" href="interface_j_c_group_item.html">JCGroupItem</a> 中 <a class="el" href="interface_j_c_group_item.html#abb32e0910f0c9e0b356b98d9f2f89eb2">changeState</a> 值不影响具体操作 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_group_callback-p.html#a40ab12f45bba248f056294c4afbad6ba">onCreateGroup</a> 回调</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ad519604f281f0e74374c47d2ae419faa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad519604f281f0e74374c47d2ae419faa">&#9670;&nbsp;</a></span>updateGroupComment:nickName:tag:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) updateGroupComment: </td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>groupId</em></td>
        </tr>
        <tr>
          <td class="paramkey">nickName:</td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>nickName</em></td>
        </tr>
        <tr>
          <td class="paramkey">tag:</td>
          <td></td>
          <td class="paramtype">(NSDictionary&lt; NSString *, NSObject * &gt; *__nullable)&#160;</td>
          <td class="paramname"><em>tag</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>更新群备注信息</p>
<dl class="section note"><dt>注解</dt><dd>仅自己可见</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">groupId</td><td>群标识 </td></tr>
    <tr><td class="paramname">nickName</td><td>备注名 </td></tr>
    <tr><td class="paramname">tagMap</td><td>额外信息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_group_callback-p.html#a9feddc8ebff5c96b43b5041dc610eebc">onUpdateGroupComment</a> 回调</li>
<li>-1：调用异常，不会收到回调通知 </li>
</ul>
</dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>JCSDKOC/JCSDKOC/JCGroup/<a class="el" href="_j_c_group_8h_source.html">JCGroup.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
